#
# Be sure to run `pod lib lint FYJFoundation.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'FYJFoundation'
  s.version          = '0.1.3'
  s.summary          = '常用分类框架'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
  开发中常用的分类和工具集合，协助你快速开发
                       DESC

  s.homepage         = 'https://gitee.com/fyjpublic-library/fyjfoundation'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '562925462@qq.com' => 'yaojie.feng@symbio.com' }
  s.source           = { :git => 'https://gitee.com/fyjpublic-library/fyjfoundation.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '10.0'

  s.source_files = 'FYJFoundation/Classes/**/*'
  
  # s.resource_bundles = {
  #   'FYJFoundation' => ['FYJFoundation/Assets/*.png']
  # }

  # s.public_header_files = 'Pod/Classes/**/*.h'
  # s.frameworks = 'UIKit', 'MapKit'
  # s.dependency 'AFNetworking', '~> 2.3'
  
    s.source_files = 'FYJFoundation/Classes/*.{h,m}'

    s.subspec 'NSArray' do |obj|
      obj.source_files = 'FYJFoundation/Classes/NSArray/*.{h,m}'
      obj.public_header_files = 'FYJFoundation/Classes/NSArray/*.{h}'
    end

    s.subspec 'NSAttributedString' do |obj|
      obj.source_files = 'FYJFoundation/Classes/NSAttributedString/*.{h,m}'
      obj.public_header_files = 'FYJFoundation/Classes/NSAttributedString/*.{h}'
    end

    s.subspec 'NSData' do |obj|
      obj.source_files = 'FYJFoundation/Classes/NSData/*.{h,m}'
      obj.public_header_files = 'FYJFoundation/Classes/NSData/*.{h}'
    end

    s.subspec 'NSDate' do |obj|
      obj.source_files = 'FYJFoundation/Classes/NSDate/*.{h,m}'
      obj.public_header_files = 'FYJFoundation/Classes/NSDate/*.{h}'
    end

    s.subspec 'NSDictionary' do |obj|
      obj.source_files = 'FYJFoundation/Classes/NSDictionary/*.{h,m}'
      obj.public_header_files = 'FYJFoundation/Classes/NSDictionary/*.{h}'
    end

    s.subspec 'NSNumber' do |obj|
      obj.source_files = 'FYJFoundation/Classes/NSNumber/*.{h,m}'
      obj.public_header_files = 'FYJFoundation/Classes/NSNumber/*.{h}'
    end

    s.subspec 'NSObject' do |obj|
      obj.source_files = 'FYJFoundation/Classes/NSObject/*.{h,m}'
      obj.public_header_files = 'FYJFoundation/Classes/NSObject/*.{h}'
    end

    s.subspec 'NSString' do |obj|
      obj.source_files = 'FYJFoundation/Classes/NSString/*.{h,m}'
      obj.public_header_files = 'FYJFoundation/Classes/NSString/*.{h}'
    end
  
    s.subspec 'FYJWeakTimer' do |obj|
      obj.source_files = 'FYJFoundation/Classes/FYJWeakTimer/*.{h,m}'
      obj.public_header_files = 'FYJFoundation/Classes/FYJWeakTimer/*.{h}'
    end
    
    s.subspec 'Macros' do |obj|
      obj.source_files = 'FYJFoundation/Classes/Macros/*.{h,m}'
      obj.public_header_files = 'FYJFoundation/Classes/Macros/*.{h}'
    end
end

